package com.chinaums.fsp.sdk.request;

import com.chinaums.fsp.base.pgt.TransType;
import com.chinaums.fsp.sdk.base.RequestData;
import com.chinaums.fsp.sdk.base.ResponseDataWrapper;
import com.chinaums.fsp.sdk.pgt.params.DiscountRecordQueryRequest;
import com.chinaums.fsp.sdk.pgt.params.DiscountRecordQueryResponse;
/**
 * 贴现记录查询
 * @author hty
 *
 */
public class DraftDiscountRecordQueryTest extends BaseRequest{
	
	public void testDiscountRecordQueryRequest() throws Exception {

		PgtRequestFactory rf = FACTORY.factory();

		RequestData.Builder builder = this.createRequestDataBuilder();
		builder.setTransType(TransType.DRAFT_DISCOUNT_RECORD_QUERY.getTransCode());
		DiscountRecordQueryRequest data = DiscountRecordQueryRequest.newBuilder()
				.setDraftNumber("")
				.setReqName("")
				.setCurrentPage(0)
				.setPageSize(3)
				.build();
		rf.transType(TransType.DRAFT_DISCOUNT_RECORD_QUERY.getTransCode()).responseClass(DiscountRecordQueryResponse.class)
				.data(data);

		ResponseDataWrapper rdw = rf.post();
		this.printToDraft(rdw);
	}

}
